<?php

class data_searchpicinfo extends data_base
{
    public function __construct()
    {
        parent::__construct();
        $this->_table = 'search_pic_info';
    }

	function update_pic_click($id, $last_click_date)
    {
        if ( !is_numeric( $id ) ) return false;		
		$sql = "UPDATE $this->_table SET `click_num` = click_num + 1, last_click_date = '".$last_click_date."'  WHERE  id = '$id'";
		
        return $this->_db->exec_sql( $sql );
    }
}
?>
